package Yuoxi;

/**
 * 人
 */

public class People {
    private String name;  //名字
    private int level;    //等级

    public People(){

    }
    public People(String name,int level){
        this.name=name;
        this.level=level;
    }
    //自我介绍
    public void selfIntroduce(){
        System.out.println("我叫"+this.name+""+this.level+"级了");

    }
    public String getName(){
        return name;
    }
    public void setName(int level){
        this.name=name;
    }

    public int getLevel() {
        return level;
    }
    public void setLevel(int level){
        this.level=level;
    }
}
